import request from '../utils/request';
import {service_host} from './config';

export async function addVerion(params) {
    return request(`${service_host}/version/add`, {
        method: 'POST',
        body: params
    });
}

export async function deleteVersion(id) {
    return request(`${service_host}/version/delete`, {
        method: 'DELETE',
        body: {id: id}
    });
}

export async function updateVersion(params) {
    return request(`${service_host}/version/update`, {
        method: 'POST',
        body: params
    });
}

export async function getProjectVersionList(params) {
    return request(`${service_host}/version/getProjectVersionList`, {
        method: 'POST',
        body: {pname:params}
    });
}


